package org.lyg.service;

import com.github.pagehelper.PageInfo;

import org.lyg.domain.User;
import org.lyg.domain.UserCondition;

public interface IUserService {
    PageInfo<User> list(int page, int size, UserCondition condition);

    boolean save(User user);

    boolean delete(int id);

    boolean update(User user);

    User getUserById(int id);

    boolean login(User user);

    User getUserByName(String name);
}
